package com.gitee.srurl.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zxw
 * @date 2023/5/24 22:28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sus_api_user")
public class SusApiUserDomain implements Serializable {

    @Serial
    private static final long serialVersionUID = 3557707321201093648L;

    @TableId(type = IdType.INPUT)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 允许的url长度 默认长度128
     */
    private Integer allowUrlLength;

    /**
     * 缓存混淆key（不要告诉对方这个字段）
     * 避免对方有意构造相同编码参数
     */
    private String cacheRandom;
}
